package awk.designModel.factory.absfactory;

//实现工厂之形状工厂
public class ShapeFactory extends AbstractFactory{

	public Shape getShape(String shapeType){
		if(shapeType == null){
			return null;
		}
		if(shapeType.equalsIgnoreCase("CIRCLE")){
			return new Circle();
		}else if (shapeType.equalsIgnoreCase("RECTANGLE")){
			return new Rectangle();
		}else if(shapeType.equalsIgnoreCase("SQUARE")){
			return new Square();
		}
		return null;
	}

	public Color getColor(String color){

		return null;
	}
}

